package com.example.administrator.caigou51.activity;

import android.content.Intent;
import android.os.Bundle;

import cn.xiaoneng.uiapi.Ntalker;

;

/**
 * .
 */
public class ChatActivityEmpty extends GBaseActivity {

    public static String kidString="kid";
    public static String settingidString="settingid";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Intent intent=getIntent();
        String settingid =  intent.getStringExtra(settingidString);;// 客服组id
        String siteid = "9704";//企业siteid
        String sdkKey = "39E97583-B6C1-49A6-9BF1-C960045BC5DA";//
        String kid=intent.getStringExtra(kidString);;
        String groupName = kid;// 客服组名称
        String kfuid ="kf_"+siteid+"_"+"ISME9754_T2D"+"_"+kid;// 指定客服id
        String kfname = "客服";// 指定客服昵称
        //初始化小能客服SDK
        //       Ntalker.getInstance().initSDK(context.getApplicationContext(), siteid, sdkKey);

        String userid = "123";
        String username = "456";
/*        Ntalker.getInstance().startChat(
                getApplicationContext(), settingid, groupName, kfuid, kfname,
                null,false);*/
        Ntalker.getInstance().startChat(
                getApplicationContext(), settingid, groupName, null, null,
                null,false);
        finish();

    }


}
